package org.dromara.business.domain.bo;

import org.dromara.business.domain.RebateRecord;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 返利记录业务对象 app_rebate_records
 *
 * @author Eric
 * @date 2025-09-05
 */
@Data
@AutoMapper(target = RebateRecord.class, reverseConvertGenerate = false)
public class RebateRecordBo {

    /**
     * 记录ID
     */
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;
    private String walletAddress;
    private String productName;

    /**
     * 质押记录ID
     */
    private Long stakingId;

    /**
     * 返利金额
     */
    private BigDecimal rebateAmount;

    /**
     * 返利日期
     */
    private Date rebateDate;

    /**
     * 第几天
     */
    private Integer dayNumber;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 奖励类型：1-产品收益，2-等级返利
     */
    @NotNull(message = "奖励类型：1-产品收益，2-等级返利不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer rewardType;

    /**
     * 计算基数（用于计算的本金）
     */
    @NotNull(message = "计算基数（用于计算的本金）不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal baseAmount;

    /**
     * 奖励比例
     */
    @NotNull(message = "奖励比例不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal rewardRate;

    private String[] dateRange;
}
